package com.gxa.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxa.business.dto.BusinessDTO;
import com.gxa.business.dto.EditBusinessDTO;
import com.gxa.business.entity.Business;
import com.gxa.business.vo.BusinessVO;
import com.gxa.business.vo.QueryBusinessVO;
import com.gxa.common.base.RespResult;
import org.apache.ibatis.annotations.Param;

public interface BusinessMapper extends BaseMapper<Business> {
    void editBusinessInfo(EditBusinessDTO editBusinessDTO);

    BusinessVO selectBusinessInfoByCode(Integer code);

    void addPageViews(Integer code);

    IPage<QueryBusinessVO> queryAllBusinessInfo(@Param("page") Page<QueryBusinessVO> businessVOPage);

    IPage<QueryBusinessVO> queryAllBusinessInfoByCountry(@Param("page") Page<QueryBusinessVO> businessVOPage,@Param("country") String country);
}
